package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * NucleicAcidLog对象 nucleic_acid_log
 *
 * @author ruoyi
 * @date 2023-01-08
 */
public class NucleicAcidLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String id;

    /**
     * 学生ID
     */
    @Excel(name = "学生ID")
    private String studentId;

    private String studentName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private String beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String endTime;

    private String spmpled;

    private String campusId;

    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCampusId() {
        return campusId;
    }

    public void setCampusId(String campusId) {
        this.campusId = campusId;
    }

    public String getSpmpled() {
        return spmpled;
    }

    public void setSpmpled(String spmpled) {
        this.spmpled = spmpled;
    }

    /**
     * 采样时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采样时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date samplingTime;

    /**
     * 采样结果
     */
    @Excel(name = "采样结果")
    private Integer samplingResult;

    /**
     * 采样人员
     */
    @Excel(name = "采样人员")
    private String medicalStaffId;

    /**
     * 是否单采
     */
    @Excel(name = "是否单采")
    private Integer singleMining;

    /**
     * 采样地点
     */
    @Excel(name = "采样地点")
    private String samplingLocation;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setSamplingTime(Date samplingTime) {
        this.samplingTime = samplingTime;
    }

    public Date getSamplingTime() {
        return samplingTime;
    }

    public void setSamplingResult(Integer samplingResult) {
        this.samplingResult = samplingResult;
    }

    public Integer getSamplingResult() {
        return samplingResult;
    }

    public void setMedicalStaffId(String medicalStaffId) {
        this.medicalStaffId = medicalStaffId;
    }

    public String getMedicalStaffId() {
        return medicalStaffId;
    }

    public void setSingleMining(Integer singleMining) {
        this.singleMining = singleMining;
    }

    public Integer getSingleMining() {
        return singleMining;
    }

    public void setSamplingLocation(String samplingLocation) {
        this.samplingLocation = samplingLocation;
    }

    public String getSamplingLocation() {
        return samplingLocation;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("studentId", getStudentId())
                .append("samplingTime", getSamplingTime())
                .append("samplingResult", getSamplingResult())
                .append("medicalStaffId", getMedicalStaffId())
                .append("singleMining", getSingleMining())
                .append("samplingLocation", getSamplingLocation())
                .toString();
    }
}
